package com.gthncz.beans;

public class TextEditor {
	private SpellChecker spellChecker;
	private AutoComplement autoComplement;
	
	public TextEditor(SpellChecker spellChecker) {
		System.out.println(" Inside TextEditor constructor. ");
		this.spellChecker = spellChecker;
	}
	
	public void spellCheck() {
		spellChecker.checkSpelling();
	}
	
	public void autoComplete() {
		autoComplement.complete();
	}

	public AutoComplement getAutoComplement() {
		System.out.println(" Inside TextEditor getAutoComplement. ");
		return autoComplement;
	}

	public void setAutoComplement(AutoComplement autoComplement) {
		System.out.println(" Inside TextEditor setAutoComplement. ");
		this.autoComplement = autoComplement;
	}
	
	public void initialize() {
		System.out.println(" Inside TextEditor initialize . ");
	}
	
	public void destroy() {
		System.out.println(" Inside TextEditor destroy . ");
	}

}
